require "premake/core"
workspace "WebRtc"
configurations { "Debug", "Release" }
    --全局包含的目录
    includedirs{
        "./"
    }
    --系统定义的宏等
    if is_pfm("windows") then
        defines{
            "WINDOWS",
            "WEBRTC_WIN",
        }
        location "build_win"
    elseif is_pfm("ios") then
        defines{
            "WEBRTC_POSIX",
            "WEBRTC_IOS",
        }
        location "build_ios"
    elseif is_pfm("android") then
        defines{
            "WEBRTC_LINUX",
            "WEBRTC_ANDROID",
            "WEBRTC_CLOCK_TYPE_REALTIME"
        }
        location "build_android"
    elseif is_pfm("mac") then
        defines{
            "WEBRTC_POSIX",
            "WEBRTC_MAC",
        }
        location "build_mac"
    end

filter "configurations:Debug"
    defines { "DEBUG" }
    flags { "Symbols" }

filter "configurations:Release"
    defines { "NDEBUG" }
    optimize "On"



project "rtc_common"
   kind "StaticLib"
   language "C++"

   defines{
        "NOMINMAX"
   }

   files {
       "*.h",
       "*.cc",
       "*.cpp"
   }


include "base"